# Use OpenJDK 8 as base image
FROM openjdk:8-jdk-alpine

# Set working directory
WORKDIR /app

# Copy the JAR file into the container
COPY target/qr-code-back-1.0-SNAPSHOT.jar qr-code-back-1.0-SNAPSHOT.jar

# Expose port 8080 (default Spring Boot port)
EXPOSE 8080

# Run the application
ENTRYPOINT ["java", "-jar", "qr-code-back-1.0-SNAPSHOT.jar"]
